using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class hr_employee_overtimeMap : EntityTypeConfiguration<hr_employee_overtime>
    {
        public hr_employee_overtimeMap()
        {
            // Primary Key
            this.HasKey(t => t.id);

            // Properties
            this.Property(t => t.type)
                .HasMaxLength(20);

            this.Property(t => t.note)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("hr_employee_overtime");
            this.Property(t => t.id).HasColumnName("id");
            this.Property(t => t.employee_id).HasColumnName("employee_id");
            this.Property(t => t.date).HasColumnName("date");
            this.Property(t => t.qty).HasColumnName("qty");
            this.Property(t => t.type).HasColumnName("type");
            this.Property(t => t.note).HasColumnName("note");
            this.Property(t => t.ID2).HasColumnName("ID2");
        }
    }
}
